import Vue from 'vue'
// import Vuex from 'vuex'
// import Vuex from './LcVuex'
import Vuex from 'lc-store'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    count: 0
  },
  mutations: {
    add: function (state, payload) {
      state.count = state.count + payload;
    }
  },
  actions: {
    asyncAdd (storeContent, payload) {
      setTimeout(() => {
        storeContent.commit("add", payload)
      }, 1000)
    }
  },
  modules: {
  }
})
